package jpa.entitys.promis.construction;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the VW_SYNC_REQUEST_PAYMENT_DEDUCT database table.
 * 
 */
@Entity
@Table(name="VW_SYNC_REQUEST_PAYMENT_DEDUCT")
@NamedQueries({
    @NamedQuery(name = "VwSyncRequestPaymentDeduct.findAll", query = " SELECT c FROM VwSyncRequestPaymentDeduct c "),
    @NamedQuery(name = "VwSyncRequestPaymentDeduct.findById", query = " SELECT c FROM VwSyncRequestPaymentDeduct c WHERE c.id = :Id "),
    @NamedQuery(name = "VwSyncRequestPaymentDeduct.findByPRStatus", query = " SELECT c FROM VwSyncRequestPaymentDeduct c WHERE c.status = :status And c.syncIsstaging = :syncIsstaging "),
    @NamedQuery(name = "VwSyncRequestPaymentDeduct.findByDocumentNo", query = " SELECT c FROM VwSyncRequestPaymentDeduct c WHERE c.company = :company And c.project = :project And c.requestNo = :documentNo And c.status = :status order by c.company,c.project,c.requestNo,c.seq asc"),
    @NamedQuery(name = "VwSyncRequestPaymentDeduct.findByDocumentNo1", query = " SELECT c FROM VwSyncRequestPaymentDeduct c WHERE c.company = :company And c.project = :project And c.requestNo = :documentNo order by c.company,c.project,c.requestNo,c.seq asc")
})
public class VwSyncRequestPaymentDeduct extends jpa.entitys.common.CommonEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name="ID")
	private String id;
	
	@Override public String toString() { return org.apache.commons.lang.builder.ToStringBuilder.reflectionToString(this);}

	@Column(name="BUILDING_PHASE")
	private String buildingPhase;

	private String company;

	@Column(name="CONTRACT_DOC_NO")
	private String contractDocNo;

	@Column(name="CONTRACT_NO")
	private String contractNo;

	@Column(name="CONTRACTOR_CODE")
	private String contractorCode;

	@Column(name="CONTRACTOR_NAME")
	private String contractorName;

	@Column(name="COST_CONTRACT_DEDUCT_PO_ID")
	private String costContractDeductPoId;

	@Column(name="CREATED_BY")
	private String createdBy;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATED_ON")
	private Date createdOn;

	@Column(name="DEDUCT_AMOUNT")
	private BigDecimal deductAmount;

	@Column(name="DEDUCT_FLAG")
	private String deductFlag;

	@Column(name="DEDUCT_NET_AMOUNT")
	private BigDecimal deductNetAmount;

	@Column(name="DOC_NO")
	private BigDecimal docNo;

	@Column(name="DOC_SERIES")
	private String docSeries;

	@Column(name="DOC_TYPE")
	private String docType;

	@Column(name="FEE_AMOUNT")
	private BigDecimal feeAmount;

	@Column(name="FEE_RATE")
	private BigDecimal feeRate;	

	@Column(name="LAST_UPD_BY")
	private String lastUpdBy;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="LAST_UPD_ON")
	private Date lastUpdOn;

	@Column(name="MAIN_CONTRACT_DOC_NO")
	private String mainContractDocNo;

	@Column(name="MAIN_CONTRACT_NO")
	private String mainContractNo;

	@Column(name="PAY_DEDUCT")
	private BigDecimal payDeduct;

	@Column(name="PAY_FEE")
	private BigDecimal payFee;

	@Column(name="PAY_NET_DEDUCT")
	private BigDecimal payNetDeduct;

	private String project;

	@Column(name="PROPERTY_CATEGORY")
	private String propertyCategory;

	@Column(name="REF_INSTALLMENT_NO")
	private BigDecimal refInstallmentNo;

	@Column(name="REQUEST_NO")
	private String requestNo;

	@Column(name="SAP_COMPANY_CODE")
	private String sapCompanyCode;

	@Column(name="SAP_PLANT_CODE")
	private String sapPlantCode;

	private BigDecimal seq;

	private String status;

	@Column(name="SYNC_CREATEDBY")
	private String syncCreatedby;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="SYNC_CREATEDON")
	private Date syncCreatedon;

	@Column(name="SYNC_EXTERNAL_REF_KEY")
	private String syncExternalRefKey;

	@Column(name="SYNC_EXTERNAL_REF_NO")
	private String syncExternalRefNo;

	@Column(name="SYNC_ISSTAGING")
	private String syncIsstaging;

	@Column(name="SYNC_ISSYNC")
	private String syncIssync;

	@Column(name="SYNC_UPDATEDBY")
	private String syncUpdatedby;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="SYNC_UPDATEDON")
	private Date syncUpdatedon;

	@Column(name="UNIT_NUMBER")
	private String unitNumber;

	@Column(name="ZONE_CODE")
	private String zoneCode;
	
	@Column(name="REF_CONTRACT_SEQ")
	private String refContractSeq;
	
	@Column(name="INSTALLMENT_NO_STR")
	private String installmentNoStr;

	public VwSyncRequestPaymentDeduct() {
	}
	
	/**
	 * @return the refContractSeq
	 */
	public String getRefContractSeq() {
		return refContractSeq;
	}



	/**
	 * @param refContractSeq the refContractSeq to set
	 */
	public void setRefContractSeq(String refContractSeq) {
		this.refContractSeq = refContractSeq;
	}



	/**
	 * @return the installmentNoStr
	 */
	public String getInstallmentNoStr() {
		return installmentNoStr;
	}

	/**
	 * @param installmentNoStr the installmentNoStr to set
	 */
	public void setInstallmentNoStr(String installmentNoStr) {
		this.installmentNoStr = installmentNoStr;
	}

	public String getBuildingPhase() {
		return this.buildingPhase;
	}

	public void setBuildingPhase(String buildingPhase) {
		this.buildingPhase = buildingPhase;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getContractDocNo() {
		return this.contractDocNo;
	}

	public void setContractDocNo(String contractDocNo) {
		this.contractDocNo = contractDocNo;
	}

	public String getContractNo() {
		return this.contractNo;
	}

	public void setContractNo(String contractNo) {
		this.contractNo = contractNo;
	}

	public String getContractorCode() {
		return this.contractorCode;
	}

	public void setContractorCode(String contractorCode) {
		this.contractorCode = contractorCode;
	}

	public String getContractorName() {
		return this.contractorName;
	}

	public void setContractorName(String contractorName) {
		this.contractorName = contractorName;
	}

	public String getCostContractDeductPoId() {
		return this.costContractDeductPoId;
	}

	public void setCostContractDeductPoId(String costContractDeductPoId) {
		this.costContractDeductPoId = costContractDeductPoId;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}

	public BigDecimal getDeductAmount() {
		return this.deductAmount;
	}

	public void setDeductAmount(BigDecimal deductAmount) {
		this.deductAmount = deductAmount;
	}

	public String getDeductFlag() {
		return this.deductFlag;
	}

	public void setDeductFlag(String deductFlag) {
		this.deductFlag = deductFlag;
	}

	public BigDecimal getDeductNetAmount() {
		return this.deductNetAmount;
	}

	public void setDeductNetAmount(BigDecimal deductNetAmount) {
		this.deductNetAmount = deductNetAmount;
	}

	public BigDecimal getDocNo() {
		return this.docNo;
	}

	public void setDocNo(BigDecimal docNo) {
		this.docNo = docNo;
	}

	public String getDocSeries() {
		return this.docSeries;
	}

	public void setDocSeries(String docSeries) {
		this.docSeries = docSeries;
	}

	public String getDocType() {
		return this.docType;
	}

	public void setDocType(String docType) {
		this.docType = docType;
	}

	public BigDecimal getFeeAmount() {
		return this.feeAmount;
	}

	public void setFeeAmount(BigDecimal feeAmount) {
		this.feeAmount = feeAmount;
	}

	public BigDecimal getFeeRate() {
		return this.feeRate;
	}

	public void setFeeRate(BigDecimal feeRate) {
		this.feeRate = feeRate;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLastUpdBy() {
		return this.lastUpdBy;
	}

	public void setLastUpdBy(String lastUpdBy) {
		this.lastUpdBy = lastUpdBy;
	}

	public Date getLastUpdOn() {
		return this.lastUpdOn;
	}

	public void setLastUpdOn(Date lastUpdOn) {
		this.lastUpdOn = lastUpdOn;
	}

	public String getMainContractDocNo() {
		return this.mainContractDocNo;
	}

	public void setMainContractDocNo(String mainContractDocNo) {
		this.mainContractDocNo = mainContractDocNo;
	}

	public String getMainContractNo() {
		return this.mainContractNo;
	}

	public void setMainContractNo(String mainContractNo) {
		this.mainContractNo = mainContractNo;
	}

	public BigDecimal getPayDeduct() {
		return this.payDeduct;
	}

	public void setPayDeduct(BigDecimal payDeduct) {
		this.payDeduct = payDeduct;
	}

	public BigDecimal getPayFee() {
		return this.payFee;
	}

	public void setPayFee(BigDecimal payFee) {
		this.payFee = payFee;
	}

	public BigDecimal getPayNetDeduct() {
		return this.payNetDeduct;
	}

	public void setPayNetDeduct(BigDecimal payNetDeduct) {
		this.payNetDeduct = payNetDeduct;
	}

	public String getProject() {
		return this.project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public String getPropertyCategory() {
		return this.propertyCategory;
	}

	public void setPropertyCategory(String propertyCategory) {
		this.propertyCategory = propertyCategory;
	}

	public BigDecimal getRefInstallmentNo() {
		return this.refInstallmentNo;
	}

	public void setRefInstallmentNo(BigDecimal refInstallmentNo) {
		this.refInstallmentNo = refInstallmentNo;
	}

	public String getRequestNo() {
		return this.requestNo;
	}

	public void setRequestNo(String requestNo) {
		this.requestNo = requestNo;
	}

	public String getSapCompanyCode() {
		return this.sapCompanyCode;
	}

	public void setSapCompanyCode(String sapCompanyCode) {
		this.sapCompanyCode = sapCompanyCode;
	}

	public String getSapPlantCode() {
		return this.sapPlantCode;
	}

	public void setSapPlantCode(String sapPlantCode) {
		this.sapPlantCode = sapPlantCode;
	}

	public BigDecimal getSeq() {
		return this.seq;
	}

	public void setSeq(BigDecimal seq) {
		this.seq = seq;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSyncCreatedby() {
		return this.syncCreatedby;
	}

	public void setSyncCreatedby(String syncCreatedby) {
		this.syncCreatedby = syncCreatedby;
	}

	public Date getSyncCreatedon() {
		return this.syncCreatedon;
	}

	public void setSyncCreatedon(Date syncCreatedon) {
		this.syncCreatedon = syncCreatedon;
	}

	public String getSyncExternalRefKey() {
		return this.syncExternalRefKey;
	}

	public void setSyncExternalRefKey(String syncExternalRefKey) {
		this.syncExternalRefKey = syncExternalRefKey;
	}

	public String getSyncExternalRefNo() {
		return this.syncExternalRefNo;
	}

	public void setSyncExternalRefNo(String syncExternalRefNo) {
		this.syncExternalRefNo = syncExternalRefNo;
	}

	public String getSyncIsstaging() {
		return this.syncIsstaging;
	}

	public void setSyncIsstaging(String syncIsstaging) {
		this.syncIsstaging = syncIsstaging;
	}

	public String getSyncIssync() {
		return this.syncIssync;
	}

	public void setSyncIssync(String syncIssync) {
		this.syncIssync = syncIssync;
	}

	public String getSyncUpdatedby() {
		return this.syncUpdatedby;
	}

	public void setSyncUpdatedby(String syncUpdatedby) {
		this.syncUpdatedby = syncUpdatedby;
	}

	public Date getSyncUpdatedon() {
		return this.syncUpdatedon;
	}

	public void setSyncUpdatedon(Date syncUpdatedon) {
		this.syncUpdatedon = syncUpdatedon;
	}

	public String getUnitNumber() {
		return this.unitNumber;
	}

	public void setUnitNumber(String unitNumber) {
		this.unitNumber = unitNumber;
	}

	public String getZoneCode() {
		return this.zoneCode;
	}

	public void setZoneCode(String zoneCode) {
		this.zoneCode = zoneCode;
	}

}